package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter
@Setter
public class Sign extends BaseDomain{

    public static final int STATE_NO = 0;//
    public static final int STATE_YES = 1;//

    private User user; //用户

    private int count; //续签天数

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date signTime; //签到时间

    private int signScore; //签到积分

    private int signState;  //状态,暂时没用上


    //如果要算总签到天数,直接根据userId count 查总条数
    //当count是5的倍数,弹框积分翻倍
}